package com.itheima.mp.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.mp.domain.dto.PageDto;
import com.itheima.mp.domain.po.User;
import com.itheima.mp.domain.vo.UserVO;
import com.itheima.mp.query.UserQuery;

import java.util.List;

public interface IUserService extends IService<User> {

    void deductBalance(Long id, Integer money);

    List<UserVO> getUsers(String name, Integer status, Integer maxBalance, Integer minBalance);

    UserVO getUserAndAddresses(Long id);

    List<UserVO> getUsersAndAddresses(List<Long> ids);

    PageDto<UserVO> getUsersPage(UserQuery userQuery);
}
